package py.com.alfa.escriba.web.services;

import py.com.alfa.escriba.exception.ServiceException;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import py.com.alfa.escriba.persistence.dto.InmueblesDTO;
import py.com.alfa.escriba.web.interceptor.InvocationContext;

public interface InmueblesService {
  List<InmueblesDTO> listInmuebles(InvocationContext ic) throws ServiceException;
  InmueblesDTO getInmuebles(Long id, InvocationContext ic) throws ServiceException;
  void deleteInmuebles(Long id, InvocationContext ic) throws ServiceException;
  @Transactional(value="transactionManager", rollbackFor={ServiceException.class},propagation=Propagation.REQUIRED)
  InmueblesDTO updateInmuebles(Long id, InmueblesDTO dto, InvocationContext ic) throws ServiceException;
  @Transactional(value="transactionManager", rollbackFor={ServiceException.class},propagation=Propagation.REQUIRED)
  InmueblesDTO createInmuebles(InmueblesDTO dto, InvocationContext ic) throws ServiceException;
  List<InmueblesDTO> buscarInmuebles(InmueblesDTO dto, InvocationContext ic) throws ServiceException;
}